import {getDict} from '~/utils'
export const tableOption ={
    "align": "center",
    "index": true,
    "border": true,
    "addBtn":false,
    "editBtn":false,
    "delBtn":false,
    "viewBtn":true,
    dialogClickModal: false,    
    "column": [
        {
            "prop": "id",
            "type": "input",
            "label": "主键",
            "hide":true,
            "viewDisplay":false
        },
        {
            "prop": "interfaceLabel",
            "type": "select",
            dicData: getDict('interface_label'),
            "label": "接口标识",
            "search": true,
            "searchSpan": 8,
            "searchLabelWidth": 130,
        },
        {
            "prop": "requestParam",
            "type": "input",
            "width":200,
            span: 24,
            "label": "请求参数",
        },
        {
            "prop": "interfaceCallTime",
            "type": "input",
            "label": "接口调用耗时"
        },
        {
            "prop": "callResult",
            "type": "select",
            "label": "接口调用结果",
            "slot":true,
            "dicData": [
                {
                    "label": "成功",
                    "value": "Y"
                },
                {
                    "label": "失败",
                    "value": "N"
                }
            ],
            "valueDefault": "Y",
            "search": true,
            "searchSpan": 8,
            "searchLabelWidth": 130,
        },
        {
            "prop": "callErrorMsg",
            "type": "textarea",
            span: 24,
            minRows:1,
            maxRows:5,
            "label": "接口调用错误信息",
            "hide":true,
        },
        {
            "prop": "dataHandleTime",
            "type": "input",
            "label": "数据处理耗时"
        },
        {
            "prop": "handleResult",
            "type": "select",
            "label": "数据处理结果",
            "slot":true,
            "dicData": [
                {
                    "label": "成功",
                    "value": "Y"
                },
                {
                    "label": "失败",
                    "value": "N"
                }
            ],
            "valueDefault": "Y",
            "search": true,
            "searchSpan": 8,
            "searchLabelWidth": 130,
        },
        {
            "prop": "handleErrorMsg",
            "type": "textarea",
            span: 24,
            minRows:1,
            maxRows:5,
            "label": "数据处理失败原因",
            "hide":true,
        },
        {
            "prop": "getTime",
            "type": "daterange",
            "label": "调用时间",
            "search": true,
            "searchSpan": 8,
            "hide":true,
            "searchLabelWidth": 130,
            "valueFormat": "yyyy-MM-dd",
            viewDisplay:false,
        },
        {
            "prop": "createTime",
            "type": "datetime",
            "label": "调用时间",
        }
        ],
    "stripe": true,
    "indexLabel": "序号",
    labelWidth:150,
}
